<!DOCTYPE html>
<html>
<head>
    <script>
    function factorial(n){
        if(n == 1){
            return 1;
        }
        return n* factorial(n-1);
    }
    var n = promot('求阶乘')

    </script>
</head>    
</html>